package com.capgemini.cn.authority.data.repository;

import com.capgemini.cn.authority.data.entity.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

/**
 * Created by 2017/9/10
 *
 * @author yaxia
 */
public interface UsersRepository extends JpaRepository<Users, Long> {

    /**
     * 根据用户名和密码查询用户数据对象
     *
     * @param username 用户名
     * @param password 密码
     */
    Users findByUserNameAndPassword(@Param(value = "username") String username, @Param(value = "password") String password);
}
